package com.mc.rmi;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class Server {
	public static void main(String[] args) {
		try {
			RemoteInterface obj = new RemoteImp();
			Registry registry = LocateRegistry.createRegistry(8888);
			registry.bind("test", obj);
			System.out.println("bound!");
		} catch (Exception e) {
			// TODO: handle exception
		}
	}
}
